package com.hl.toolkit.server.tycoin;

import com.unionpay.acp.sdk.SDKConfig;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

/**
 * 重要：联调接入的时候请务必仔细阅读注释！！！
 * 
 * 功能：从应用的classpath下加载acp_sdk.properties属性文件并将该属性文件中的键值对赋值到SDKConfig类中 <br>
 * 
 */
@Configuration
@Service
@Lazy(false)
 public class AutoLoadServlet extends HttpServlet {
	
	

	private static final long serialVersionUID = -1529411583329649895L;
  
	 
	static{
		SDKConfig.getConfig().loadPropertiesFromSrc();
 	}
	
	 
	 
	 
	@Override
	public void init(ServletConfig config) throws ServletException {
  		
		super.init();
	}
}
